import Vue from 'vue';
import App from '@//App.vue';
import vSelect from 'vue-select';
import 'vue-select/dist/vue-select.css';
import Vuex from 'vuex';
import store from '@/store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import router from "@/router";
import VueRouter from "vue-router";

Vue.use(Vuex)
Vue.use(VueRouter)
Vue.component('v-select', vSelect)

Vue.config.productionTip = false
Vue.use(ElementUI);

const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
    return originalPush.call(this, location).catch(err=>err)
}

new Vue({
    render: h => h(App),
    store: store,
    router
}).$mount('#app')
